<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D - 三刀流·索隆</title>
    <style>
        html,
        body,
        div {
            padding: 0;
            margin: 0;
        }

        body {
            background-color: #5E585C;
        }

        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 100vh;
        }

        .card {
            width: 500px;
            height: 250px;
            position: relative;
        }

        .card__back {
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 0 15px 1px #999;
            opacity: 1;
            transform-origin: bottom;
            transition: 2s;
        }

        .card__back img {
            width: 100%;
            height: 100%;
        }

        .card__user {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            bottom: 0;
            opacity: 1;
            transform-origin: bottom;
            transition: 2s;
        }

        .card__user img {
            width: 220px;
            height: 100%;
            margin-left: 20px;
        }

        .card:hover .card__back {
            transform: perspective(1000px) rotateX(30deg) skewX(-20deg);
            opacity: .5;
        }

        .card:hover .card__user {
            transform: scale(1.4);
            opacity: 1;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="card">
            <div class="card__back">
                <img src="./back.png" alt="海贼王背景">
            </div>
            <div class="card__user">
                <img src="./user.png" alt="三刀流索隆">
            </div>
        </div>
    </div>
</body>
</html>